/**
 * 状态枚举
 * */
interface ParamsRule {
  [key: string]: string | number
} 
export const orderClientStatus: ParamsRule = {
  UNDELIVERED:'待发货',
  UNPAID:'未付款',
  PAID:'已付款',
  DELIVERED:'已发货',
  CANCELLED:'已取消',
  COMPLETED:'已完成',
  TAKE:'待使用',
  STAY_PICKED_UP:'待自提'
};

// 付款状态
export const payStatusClient: ParamsRule = {
  UNPAID:'未付款',
  PAID:'已付款'
};

// 支付方式
export const paymentMethodClient: ParamsRule = {
  ONLINE:'在线支付',
  ALIPAY:'支付宝',
  BANK_TRANSFER:'银行卡',
  WALLET:'零钱支付',
  WECHAT:"微信",
  WECHAT_PARTNER:"微信服务商支付"
};

// 售后单类型
export const serviceTypeClient: ParamsRule = {
  CANCEL: "取消",
  RETURN_GOODS: "退货",
  EXCHANGE_GOODS: "换货",
  RETURN_MONEY: "退款"
};

// 售后单状态
export const serviceStatusClient: ParamsRule = {
  APPLY: "申请售后",
  PASS: "通过售后",
  REFUSE: "换货",
  RETURN_MONEY: "拒绝售后",
  BUYER_RETURN: "买家退款，等待卖家收货",
  SELLER_RE_DELIVERY: "商家换货/补发",
  SELLER_CONFIRM: "卖家确认收货",
  SELLER_TERMINATION: "卖家终止售后",
  BUYER_CONFIRM: "买家确认收货",
  BUYER_CANCEL: "买家取消售后",
  WAIT_REFUND: "等待平台退款",
  COMPLETE: "完成售后",
};

// 售后类型
export const serviceTypeList: ParamsRule = {
  CANCEL: "取消",
  RETURN_GOODS: "退货",
  EXCHANGE_GOODS: "换货",
  RETURN_MONEY: "退款",
};
